﻿using System;
using System.ComponentModel;
using Xyz.BusinessObjects.Validation;

namespace Xyz.BusinessObjects
{
    public class FlightPrice : BusinessObject
	{
        public FlightPrice()
        {
            AddRule(new ValidateMandatory("SeatTypeCode"));
            AddRule(new ValidateMandatory("Price"));
            AddRule(new ValidateMandatory("FlightId"));
           
           
        }
        public int FlightId { get; set; }
        public string SeatTypeCode { get; set; }
        public decimal Price { get; set; }
	}
}


